package org.web.ssm.service.wechatService.wechatServiceImpl;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.web.ssm.dao.CommentMapper;
import org.web.ssm.dao.OrderDetailMapper;
import org.web.ssm.dao.UserMapper;
import org.web.ssm.dto.StatisticsModel;
import org.web.ssm.exception.BaseException;
import org.web.ssm.exception.OrderException;
import org.web.ssm.model.Comment;
import org.web.ssm.model.OrderDetail;
import org.web.ssm.model.User;
import org.web.ssm.model.queryVo.BaseQuery;
import org.web.ssm.model.wechatModel.Statis;
import org.web.ssm.service.IOrderService;
import org.web.ssm.service.wechatService.IComentService;

import java.util.Date;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by LUOLIANG on 2016/6/13.
 */
@Service("comentService")
public class ComentServiceImpl implements IComentService {

    @Autowired
    private CommentMapper commentMapper;

    @Override
    public List<Comment> listByTopic(int id) throws Exception {
        return commentMapper.listByTopic(id);
    }

    @Override
    public void commrntTopic(Comment comment) throws Exception {
        commentMapper.commrntTopic(comment);
    }
}
